'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const db = uniCloud.database();
	let id=event._id
	let obj=event
	delete obj._id
	let res = await db.collection('user-list').doc(id).update(obj);
	//返回数据给客户端
	return res
};
